<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>

搜索到文章${page.count}篇,每页显示${page.pageSize}条,当前显示 第${page.pageNum}页/共${page.pageCount}页&nbsp;&nbsp;  
<c:if test="${page.pageCount>1}">
<c:forEach var="i" begin="1" end="${page.pageCount}" step="1">
<c:choose>
<c:when test="${i==page.pageNum}">${i}</c:when>
<c:otherwise ><a href="javascript:refreshArticle('${tag}',${i})">${i}</a></c:otherwise>
</c:choose>
 </c:forEach>
</c:if>
<table class=lst>
	<c:forEach items="${page.list}" var="article">
		<TR>
			<TD vAlign=top width=75><A href="user/${article.fans.name}">
			<IMG class=fansIcon src="${article.fans.icon}"></A></TD>
			<td>
			<h3><a href="viewArticle/${article.articleId}">${article.title}</a></h3>
			<img src="images/comment.gif"><a
				href="viewArticle/${article.articleId}">${article.commentCount}个评论</a>&nbsp;<img
				src="images/visit.gif">${article.hot}次访问&nbsp;相关标签 <c:forEach
				items="${article.tagSet}" var="tag">
				<a class=tag href="viewTag/${tag.tagId}">${tag.title}</a>&nbsp;&nbsp;
	   </c:forEach><br>

			</td>
		</TR>
	</c:forEach>
</table>

<div align="center" style="background-color:#FFFFFF;">
<c:if
	test="${page.pageNum>1}">
	<a href="javascript:refreshArticle('${tag}',${page.pageNum-1})">上一页</a>
</c:if> <c:if test="${page.pageCount>page.pageNum}">
	<a href="javascript:refreshArticle('${tag}',${page.pageNum+1})">下一页</a>
</c:if> 
</div>
